<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改专业机房八')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-major_eight-edit" th:object="${labMajorEight}">
            <input name="equipId" th:field="*{equipId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">实验室场所代码：</label>
                <div class="col-sm-8">
                    <input name="placeCode" th:field="*{placeCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">仪器名称：</label>
                <div class="col-sm-8">
                    <input name="equipName" th:field="*{equipName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">仪器编号：</label>
                <div class="col-sm-8">
                    <input name="equipCode" th:field="*{equipCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分类号：</label>
                <div class="col-sm-8">
                    <input name="equipSort" th:field="*{equipSort}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">型号：</label>
                <div class="col-sm-8">
                    <input name="equipModel" th:field="*{equipModel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">规格：</label>
                <div class="col-sm-8">
                    <input name="equipNorms" th:field="*{equipNorms}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">国别：</label>
                <div class="col-sm-8">
                    <input name="equipNation" th:field="*{equipNation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">厂家：</label>
                <div class="col-sm-8">
                    <input name="equipFirm" th:field="*{equipFirm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">出厂号：</label>
                <div class="col-sm-8">
                    <input name="equipFirmid" th:field="*{equipFirmid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">出厂日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="equipFirmdate" th:value="${#dates.format(labMajorEight.equipFirmdate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">购置日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="equipBuydate" th:value="${#dates.format(labMajorEight.equipBuydate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">领用人：</label>
                <div class="col-sm-8">
                    <input name="equipUname" th:field="*{equipUname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实验室场所名称：</label>
                <div class="col-sm-8">
                    <select name="equipType" class="form-control m-b" th:with="type=${@dict.getType('lab_all_name')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{equipType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">设备状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_equip_status')}">
                        <input type="radio" th:id="${'equipStatus_' + dict.dictCode}" name="equipStatus" th:value="${dict.dictValue}" th:field="*{equipStatus}">
                        <label th:for="${'equipStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">仪器个数：</label>
                <div class="col-sm-8">
                    <input name="equipNum" th:field="*{equipNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">ip网段：</label>
                <div class="col-sm-8">
                    <input name="ip" th:field="*{ip}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">灭火器个数：</label>
                <div class="col-sm-8">
                    <input name="fireNum" th:field="*{fireNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">灭火器状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_use_status')}">
                        <input type="radio" th:id="${'fireState_' + dict.dictCode}" name="fireState" th:value="${dict.dictValue}" th:field="*{fireState}">
                        <label th:for="${'fireState_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">实验室报告：</label>
                <div class="col-sm-8">
                    <textarea name="labReport" class="form-control">[[*{labReport}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "lab/major_eight";
        $("#form-major_eight-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-major_eight-edit').serialize());
            }
        }

        $("input[name='equipFirmdate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='equipBuydate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>